//
//  HeaderView.h
//  jingdongfang
//
//  Created by RKL on 2018/5/7.
//  Copyright © 2018年 BOE-SBG-CTO. All rights reserved.
//

#import <UIKit/UIKit.h>
#define Is_iPhoneX ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2436), [[UIScreen mainScreen] currentMode].size) : NO)
/***  当前屏幕宽度 */
#define kScreenWidth  ([[UIScreen mainScreen] bounds].size.width)
/***  当前屏幕高度 */
#define kScreenHeight  ([[UIScreen mainScreen] bounds].size.height)
#define kTabBarHeight ((Is_iPhoneX)?(83):(49))
#define kNavBarHeight ((Is_iPhoneX)?(64.f + 20):(64.f))
#define kTabViewHeight 290 - kNavBarHeight
#define KHeadViewOff 200  //下拉弹簧最大值
typedef void(^picCompleteBlock)(void);


@protocol HeaderViewDelegate <NSObject>

- (void) clickLeftView;

- (void) clickAuthorButtonClick;

- (void) addFavoriteClick;
- (void) cancleFavoriteClick;


- (void) pinglunClick;
- (void) shareClick;
- (void) pushClick;


@end

@interface HeaderView : UIView

@property (nonatomic, weak) id<HeaderViewDelegate>delegate;

@property (nonatomic, strong) UIImageView *backgroundImageView;

@property (nonatomic, strong) UIImageView * leftView;
@property (nonatomic, strong) UILabel * titleLabel;

@property (nonatomic, strong) UIImageView * authorImageView;
@property (nonatomic, strong) UILabel * authorLabel;

/**
 数量
 */
@property (nonatomic, strong) UILabel * lookLabel;
@property (nonatomic, copy) NSString * lookStr;
@property (nonatomic, strong) UIImageView * lookImageView;
//四个按钮
@property (nonatomic, strong) UILabel * btnLabel1;
@property (nonatomic, strong) UILabel * btnLabel2;
@property (nonatomic, strong) UILabel * btnLabel3;
@property (nonatomic, strong) UILabel * btnLabel4;
//四个button
@property (nonatomic, strong) UIButton * btn1;
@property (nonatomic, strong) UIButton * btn2;
@property (nonatomic, strong) UIButton * btn3;
@property (nonatomic, strong) UIButton * btn4;

/**
 yes:喜爱    NO：不喜爱
 */
@property (nonatomic, assign) BOOL isLike;

- (void)setIconPicStr:(NSString *)iconPicStr withCompleteBlock:(picCompleteBlock) completion;

@end








